<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>std::ostream &amp;operator&lt;&lt;(std::ostream &amp;, const basic_result&lt;T, E, NoValuePolicy&gt; &amp;) - Boost.Outcome documentation</title>
<link rel="stylesheet" href="../../../css/boost.css" type="text/css">
<meta name="generator" content="Hugo 0.52 with Boostdoc theme">
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>

<link rel="icon" href="../../../images/favicon.ico" type="image/ico"/>
<body><div class="spirit-nav">
<a accesskey="p" href="../../../reference/functions/iostream/outcome_operator_out.html"><img src="../../../images/prev.png" alt="Prev"></a>
    <a accesskey="u" href="../../../reference/functions/iostream.html"><img src="../../../images/up.png" alt="Up"></a>
    <a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="../../../reference/functions/iostream/outcome_print.html"><img src="../../../images/next.png" alt="Next"></a></div><div id="content">
  <div class="titlepage"><div><div><h1 style="clear: both"><code>std::ostream &amp;operator&lt;&lt;(std::ostream &amp;, const basic_result&lt;T, E, NoValuePolicy&gt; &amp;)</code></h1></div></div></div>
  <p>Serialises a <code>basic_result</code> to a <code>std::ostream</code>.</p>

<p>Serialisation format is:</p>

<pre><code>&lt;unsigned int flags&gt;&lt;space&gt;&lt;value_type if set and not void&gt;&lt;error_type if set and not void&gt;
</code></pre>

<p>This is the <strong>wrong</strong> function to use if you wish to print human readable output.
Use <a href="../../../reference/functions/iostream/result_print.html" class="api-reference"><code>std::string print(const basic_result&lt;T, E, NoValuePolicy&gt; &amp;)</code></a>
 instead.</p>

<p><em>Overridable</em>: Not overridable.</p>

<p><em>Requires</em>: That <code>operator&lt;&lt;</code> is a valid expression for <code>std::ostream</code> and <code>T</code> and <code>E</code>.</p>

<p><em>Namespace</em>: <code>BOOST_OUTCOME_V2_NAMESPACE</code></p>

<p><em>Header</em>: <code>&lt;boost/outcome/iostream_support.hpp&gt;</code> (must be explicitly included manually).</p>


        </div><p><small>Last revised: March 03, 2019 at 21:04:29 UTC</small></p>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../../../reference/functions/iostream/outcome_operator_out.html"><img src="../../../images/prev.png" alt="Prev"></a>
    <a accesskey="u" href="../../../reference/functions/iostream.html"><img src="../../../images/up.png" alt="Up"></a>
    <a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="../../../reference/functions/iostream/outcome_print.html"><img src="../../../images/next.png" alt="Next"></a></div></body>
</html>
